package com.whcoding.designpatterns.pattern.builder;

/**
 * @program: spring-boot-learning
 * @description:抽象的建造者
 * @author: whcoding
 * @create: 2022-09-20 17:26
 **/
public abstract class HouseBuilder {

	private HouseVO house = new HouseVO();

	/**
	 * 打地基
	 */
	public abstract void buildBasic();

	/**
	 * 砌墙
	 */
	public abstract void buildWalls();

	/**
	 * 封顶
	 */
	public abstract void roofed();

	/**
	 * 建造方法，将产品返回
	 *
	 * @return
	 */
	public HouseVO buildHouse() {
		return house;
	}
}
